package com.zshy.base.monitor.domain.contract.command;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.validator.constraints.Length;

/**
 * 发送markdown 类型消息请求体
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class SendMessageByMarkdownCommand extends SendMessageBaseCommand {
    /**
     * 消息标题
     */
    private String title;
    /**
     * markdown消息内容
     */
    @Length(max = 4096, message = "markdownText 长度不能超过4096")
    private String markdownText;
}
